<%@ page language="java" pageEncoding="UTF-8" import="com.jy.modules.cims.common.CimsConstant"%>
<%@taglib prefix="syscode" uri="/syscode" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<script type="text/javascript" src="${basePath}/js/cims/publicJs/cimsCheck.js"></script>
  <input type="hidden" class="text" id="dtoid" name="id" notNull="false" maxLength="11" value="${dto.id}" />
  <input type="hidden" class="text" id="dtoquotaCode" name="quotaCode" notNull="false" maxLength="16" value="${dto.quotaCode}" />
 <table id="updateNewsTableId" class="formTableSwap" border="0" align="center" cellpadding="0" cellspacing="1" >
<tr>
  <th> 合作机构 ：</th>
  <td > 
	  <input type="hidden" class="text cims_noborder" id="dtocooperorgName" name="cooperorgName" notNull="false" value="${contractAllDto.cooperorgDTO.cooperorgName}" readonly/>
	  <input type="text" class="text cims_noborder" id="dtocooperorgCode" name="cooperorgCode" notNull="false" maxLength="16" value="${contractAllDto.cdto.cooperorgCode}" readonly/>
  </td>
  <th> 协议：</th>
  <td > 
 	 <input type="text" class="text cims_noborder" id="dtoagreementName" name="agreementName"  value="${contractAllDto.agreementDTO.agreementName}" readonly/>
  	 <input type="hidden" class="text cims_noborder" id="dtoagreementCode" name="agreementCode"  maxLength="16" value="${contractAllDto.cdto.agreementCode}" readonly/>
  </td>
  <th> 合约名称：</th>
  <td > 
 	 <input type="test" class="text cims_noborder" id="dtocontractName" name="contractName"  value="${contractAllDto.cdto.contractName}" readonly/>
 	 <input type="hidden" class="text cims_noborder" id="dtocontractCode" name="contractCode"  value="${contractAllDto.cdto.contractCode}" readonly/>
  </td>
</tr>
<tr>
  
  <th> 起始日期 ：</th>
  <td > 
  	<input type="text" class="text" id="dtostartDate" name="startDate" notNull="false"  value="<fmt:formatDate value="${dto.startDate}" pattern="yyyy-MM-dd" />" checkType="date"/>
  </td>
  <th> 失效日期 ：</th>
  <td > 
  	<input type="text" class="text" id="dtoinvalidDate" name="invalidDate" notNull="false"  value="<fmt:formatDate value="${dto.invalidDate}" pattern="yyyy-MM-dd" /> " checkType="date"/>
  </td>
  <th> 申请金额 ：</th>
  <td > 
  	<input type="text" class="text" id="dtoquotaSum" onkeyup='chkPrice(this)' onblur='chkLast(this)' name="quotaSum" notNull="false" maxLength="11" value="${dto.quotaSum}"  checkType="number"/>
  </td>
</tr>
<c:if test="${not empty dto}">
  <input type="hidden" value="${dto.quotaType}" name="quotaType" class="text" id="dtoquotaType"/>
  <c:if test="${quotaTypeDict.DICVALUE eq '02'}">
		<tr>
		  <th>债权标的日期:</th>
		  <td>
		  	<input type="text" class="text" id="dtocreditReferDate" name="creditReferDate" notNull="false"  value="<fmt:formatDate value="${dto.creditReferDate}" pattern="yyyy-MM-dd" />" checkType="date"/>
		  </td>
		  <th>  债权包:</th>
		  <td >
		   <input type="text" class="text" id="dtocreditPackageName" name="creditPackageName"  maxLength="32" value="${dto.creditPackageName}" />
		  </td>
		  <th></th>
		  <td></td>
		</tr>
	</c:if>
</c:if>
<c:if test="${empty dto}">
	<input type="hidden" value="${quotaTypeDict.DICVALUE}" name="quotaType" class="text" id="dtoquotaType"/>
	<c:if test="${quotaTypeDict.DICVALUE eq '02'}">
		<tr>
		  <th>债权标的日期：</th>
		  <td>
		  	<input type="text" class="text" id="dtocreditReferDate" name="creditReferDate"  value="${dto.creditReferDate}" checkType="date"/>
		  </td>
		  <th>  债权包:</th>
		  <td >
		   <input type="text" class="text" id="dtocreditPackageName" name="creditPackageName"  maxLength="32" value="${dto.creditPackageName}" />
		  </td>
		  <th></th>
		  <td></td>
		</tr>
	</c:if>
</c:if>
</table>